import java.io.*;
public class StringReverse {
	public static void main(String[] args){
		String inputString, reverseString = "";
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try {
			System.out.println("Enter the InputString to Reverse: ");
			inputString = reader.readLine();
			int length = inputString.length();
			for(int i = length-1; i>=0; i--){
				reverseString = reverseString + String.valueOf(inputString.charAt(i));
			}
		} catch (IOException e){
			e.printStackTrace();
		}
		System.out.println("Reverse String is: " + reverseString);
	}
}